package com.supermarket.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.supermarket.common.core.annotation.Excel;
import com.supermarket.common.core.web.domain.BaseEntity;

/**
 * 商品属性管理对象 product_attribute
 * 
 * @author      
 * @date 2025-07-21
 */
public class ProductAttribute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 关联的商品类型ID */
    @Excel(name = "关联的商品类型ID")
    private Long commonTypeId;

    /** 属性名称（如：颜色） */
    @Excel(name = "属性名称", readConverterExp = "如=：颜色")
    private String attributeName;

    /** 分类筛选样式：1-普通，2-颜色 */
    @Excel(name = "分类筛选样式：1-普通，2-颜色")
    private Long filterStyle;

    /** 检索方式：0-不需要检索，1-关键字检索，2-范围检索 */
    @Excel(name = "检索方式：0-不需要检索，1-关键字检索，2-范围检索")
    private Long searchType;

    /** 商品属性关联：0-否，1-是 */
    private Long isRelated;

    /** 属性是否可选：0-唯一，1-单选，2-复选 */
    private Long selectionType;

    /** 属性值可选值列表 */
    private String attributeList;

    /** 排序属性 */
    @Excel(name = "排序属性")
    private Long sortOrder;

    /** 0属性1参数 */
    @Excel(name = "0属性1参数")
    private Long type;

    /** 参数值 */
    @Excel(name = "参数值")
    private String attributeValue;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCommonTypeId(Long commonTypeId) 
    {
        this.commonTypeId = commonTypeId;
    }

    public Long getCommonTypeId() 
    {
        return commonTypeId;
    }

    public void setAttributeName(String attributeName) 
    {
        this.attributeName = attributeName;
    }

    public String getAttributeName() 
    {
        return attributeName;
    }

    public void setFilterStyle(Long filterStyle) 
    {
        this.filterStyle = filterStyle;
    }

    public Long getFilterStyle() 
    {
        return filterStyle;
    }

    public void setSearchType(Long searchType) 
    {
        this.searchType = searchType;
    }

    public Long getSearchType() 
    {
        return searchType;
    }

    public void setIsRelated(Long isRelated) 
    {
        this.isRelated = isRelated;
    }

    public Long getIsRelated() 
    {
        return isRelated;
    }

    public void setSelectionType(Long selectionType) 
    {
        this.selectionType = selectionType;
    }

    public Long getSelectionType() 
    {
        return selectionType;
    }

    public void setAttributeList(String attributeList) 
    {
        this.attributeList = attributeList;
    }

    public String getAttributeList() 
    {
        return attributeList;
    }

    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setAttributeValue(String attributeValue) 
    {
        this.attributeValue = attributeValue;
    }

    public String getAttributeValue() 
    {
        return attributeValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commonTypeId", getCommonTypeId())
            .append("attributeName", getAttributeName())
            .append("filterStyle", getFilterStyle())
            .append("searchType", getSearchType())
            .append("isRelated", getIsRelated())
            .append("selectionType", getSelectionType())
            .append("attributeList", getAttributeList())
            .append("sortOrder", getSortOrder())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("type", getType())
            .append("attributeValue", getAttributeValue())
            .toString();
    }
}
